<style type="text/css">
.fe-floatright-bottom a {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #ff9999;
    color: #fff;
    line-height: 0.7rem;
	font-size:0.45rem;
    margin: 0.5rem auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
.yellow {color:#f58220}
.fui-cell-group .fui-cell:before {
	content: " ";
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	top: -1px;
	height: 1px;
	border-top: 0 solid #ebebeb;
	color: #D9D9D9;
	-webkit-transform-origin: 0 0;
	-ms-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: scaleY(0.5);
	-ms-transform: scaleY(0.5);
	transform: scaleY(0.5);
}
.fui-cell-group .sm {
    padding:0.2rem 0
}
</style>
<div class="fui-page">
    <div style="width:100%;height:9rem;padding-top:0.3rem;">
		<div class="fui-cell-group" style="margin-top:0;background:none;">
		<div class="fui-cell" style="background:none;padding:0 0.5rem">
			<div class="fui-cell-info"></div>
			<div class="fui-cell-remark noremark" style="font-size:0.6rem;margin-right:0">
				<div class="fui-icon c">
						<div class="fui-tag" style="padding:0.2rem">
							<div style="background:#e8fcf8;border-radius:0.5rem">
								<i href="javascript:;" ng-click="pagedata.setlike();toogle(pagedata.store,'islike')" ng-class="{'icon jinyunicon':1,'icon-follow':pagedata.store.islike !=1,'icon-xiai':pagedata.store.islike >0}" style="font-size:0.8rem"></i>
							</div>
							<div>收藏</div>
						</div>
						<div class="fui-tag" style="padding:0.2rem" >
							<div style="background:#e8fcf8;border-radius:0.5rem">
							<i href="javascript:;" onclick="$('#showsharecover').modal();" class="icon icon-fenxiang2" style="font-size:0.8rem"></i>
							</div>
							<div>分享</div>
						</div>
						<div class="fui-tag" style="padding:0.2rem" >
							<div style="background:#e8fcf8;border-radius:0.5rem">
							<i href="javascript:;" ng-click="access_json('jy_merchcmi/myshop//merchid='+pagedata.store.id)" class="icon icon-icon-test" style="font-size:0.8rem"></i>
							</div>
							<div>更多</div>
						</div>
				</div>
			</div>
		</div>
		</div>
	</div>
	<div class='fui-content' style="padding:0.5rem;padding-bottom:1rem;top:0">
	<div class="fui-cell-group" style="background:#fff;margin-top:-6.6rem;padding:0.5rem;border-radius:0.5rem">
					<div class="title bold c" style="width:100%;font-size:1rem">{{pagedata.store.merchname || '平台自营'}}</div>
					<div class="subtitle c" ng-if="pagedata.table.title">桌位：<span>桌台{{pagedata.table.title}}</span></div>
					<div class="subtitle c" ng-if="!pagedata.table.title">请扫桌面二维码点餐</div>
					<div class="fui-cell sm">
						<div class="fui-cell-label" style="width:auto;padding-right:0.5rem">
							<img style="border-radius: 50%;width:2rem;height:2rem" ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem;padding-right:1rem;line-height:2">
							<div class="text">{{pagedata.member.nickname || pagedata.merchmember.name}} 欢迎光临</div>
							<div class="text">
								<span class="btn btn-sm btn-success" style="line-height:2">线上会员卡</span>
							</div>
						</div>
						<div class="fui-cell-remark" href="javascript:;" ng-click="access_json('jy_merchcmi/order.list/')">
							我的订单
						</div>
					</div>
	</div>
	<div class="fui-tab-scroll" style="margin-top:0;padding-left:0">
		<div class="item on" style="height:2rem;line-height:2rem"><a>新品推荐</a></div>
	</div>
	<div ng-if="pagedata.tuigoods.length>0" class="fui-goods-group block" style="padding-bottom:0">
		<div class="fui-cell-scroll">
			<div ng-repeat="g in pagedata.tuigoods" href="javascript:;" ng-click="access_json('jy_merchcmi/myshop//id='+pagedata.store.id+'&goodsid='+g.id)" class="fui-goods-item item" style="float:none;position: relative;width:12rem;margin:0;border-bottom: 0 solid #e7e7e7">
				<div ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="height:5rem;position:relative;background-image: url('{{tomedia(g.image) ||'../addons/jy_merch/resource/images/nologo.png'}}')">
					<div ng-show="g.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
					<div ng-if="g.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
				</div>
				<div class="detail" style="padding-left:0.3rem;">
					<div class="name" style="font-size:0.6rem:color:#999">
						{{g.title}}
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="weui_btn_area" style="margin-top:5rem">
          <a class="weui_btn weui_btn_primary" href="javascript:" ng-click="access_json('jy_merchcmi/myshop//id='+pagedata.store.id)">前往点餐</a>
    </div>
</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('_shopfooter')"></div>
<script language="javascript">
wx.ready(function () {
	scope.scancode = function(){
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href= result;					
				}
			});
	};
});
scope.pagedata.openLocation=function(item){
	wx.openLocation({
	latitude: item.lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
	longitude: item.lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
		name: item.province+item.city+item.district, // 位置名
		address: item.address2, // 地址详情说明
		scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
		infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
		success:function(){
			//alert(1111);
		}
	});
}
//获取关注
scope.pagedata.setlike=function(){
	scope.post_json('jy_merch/myshop/like/',{'merchid':scope.pagedata.store.id});
}
</script>